<#include "/common/com.html" /> <@layout>
<head>


</head>
<script>
	function save(obj) {
		var url = '${ctx}/weixin/savemsg/';
		$('#myform').form('submit', {
			url : url,
			onSubmit : function() {
			},
			success : function(data) {
				// 回填页面
				if(data !="0" ){
					alert("制作成功！");
					WeixinJSBridge.invoke('closeWindow',{},function(res){
					});
					}else {
					alert("制作失败！");
				}
			}
		});
	}
</script>
<body>
	<form class="form-inline" id="myform">
		<div class="page-content">
			<div class="row-fluid">
				<div class="span12">
					<div class="clearfix">
						<div class="pull-left ">
							<h3 class="bigger lighter">
								${(title)!} <input type="hidden" name="fromuser" id="fromuser"
									value="${(fromuser)!}"> <input type="hidden"
									name="content" id="content" value="${(content)!}"> <input
									type="hidden" name="type" id="type" value="1"> <input
									type="hidden" name="picurl" id="picurl" value="${(pic)!}">
								<input type="hidden" name="title" id="title" value="${(title)!}">
							</h3>
						</div>
						<div class="pull-right">
							<a href="#" onclick="save();" class="btn btn-warning btn-small">保存
							</a> &nbsp;&nbsp;
						</div>
					</div>
				</div>
			</div>
			<div class="hr dotted" style="background: #FFB247"></div>

		<div class="widget-header header-color-orange" style="background: #FFB247"></div>

			<div class="widget-body">
				<div class="widget-main">									<div class="dd" id="nestable">

					<ol class="dd-list">${(content)!}
					</ol></div>
				</div>
			</div>
			<!-- /.span -->
			
			</br>
			<div>
			<a href="http://mp.weixin.qq.com/s?__biz=MjM5NDQyOTYxNA==&mid=246067933&idx=1&sn=70875eb3cfa15e8a135bd071f95c6377#rd">
			<img src="/img/mmexport.jpg"   />
			</a>
			</div>
		</div>
	</form>
	<script src="${ctx}/static/assets/js/jquery.nestable.min.js"></script>

	<script>
		jQuery(function($) {

			$('.dd').nestable();
			
			$('.dd-handle a').on('mousedown', function(e){
				e.stopPropagation();
			});

		});
	</script>

</body>
</@layout>
